<layout name="page" />
<block name="content">
{:widget('page_header/simple',array('name'=>'导入供应商'))}

<form method='post' id="form_data" enctype="multipart/form-data">
	<input type="hidden" name="opmode" value="import">
	
			<a class="btn btn-primary" href="/{:C('TEMPLETE_PATH')}/supplier.xlsx" target="_blank"><i class="fa fa-download"></i>下载Excel格式&nbsp;</a>		
	</div>	
		
			按照Excel格式，整理供应商信息，不要调整列循序
	</div>	
	
			选择要导入的文件&nbsp;
			<input  style="height:42px" type="file"  name="uploadfile"  value="" class="form-control col-30">
	</div>	
	
	
		<input class="btn" type="button" value="导入" id="btn_save">
		<a  class="btn btn-return" onclick="go_return_url();">取消</a>
	</div>
</form></block>
<block name="js">
<script type="text/javascript">

	layui.use('global', function() {
		var $ = layui.jquery;
		$("#btn_save").on('click',function(){
			send_form("form_data", "{:url('import')}", "{:url('index')}");
		});
	});
</script>
</block>